Optimal. Leaf size=31 \[ -\frac{\tanh ^{-1}\left (\frac{\sqrt{a \cos ^2(e+f x)}}{\sqrt{a}}\right )}{\sqrt{a} f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0758756, antiderivative size = 31, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167, Rules used = {3176, 3205, 63, 206} \[ -\frac{\tanh ^{-1}\left (\frac{\sqrt{a \cos ^2(e+f x)}}{\sqrt{a}}\right )}{\sqrt{a} f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3176
Rule 3205
Rule 63
Rule 206
Rubi steps
\begin{align*} \int \frac{\cot (e+f x)}{\sqrt{a-a \sin ^2(e+f x)}} \, dx &=\int \frac{\cot (e+f x)}{\sqrt{a \cos ^2(e+f x)}} \, dx\\ &=-\frac{\operatorname{Subst}\left (\int \frac{1}{(1-x) \sqrt{a x}} \, dx,x,\cos ^2(e+f x)\right )}{2 f}\\ &=-\frac{\operatorname{Subst}\left (\int \frac{1}{1-\frac{x^2}{a}} \, dx,x,\sqrt{a \cos ^2(e+f x)}\right )}{a f}\\ &=-\frac{\tanh ^{-1}\left (\frac{\sqrt{a \cos ^2(e+f x)}}{\sqrt{a}}\right )}{\sqrt{a} f}\\ \end{align*}
Mathematica [A] time = 0.0430917, size = 49, normalized size = 1.58 \[ \frac{\cos (e+f x) \left (\log \left (\sin \left (\frac{1}{2} (e+f x)\right )\right )-\log \left (\cos \left (\frac{1}{2} (e+f x)\right )\right )\right )}{f \sqrt{a \cos ^2(e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.797, size = 40, normalized size = 1.3 \begin{align*} -{\frac{1}{f}\ln \left ({\frac{1}{\sin \left ( fx+e \right ) } \left ( 2\,a+2\,\sqrt{a}\sqrt{a \left ( \cos \left ( fx+e \right ) \right ) ^{2}} \right ) } \right ){\frac{1}{\sqrt{a}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.7319, size = 208, normalized size = 6.71 \begin{align*} \left [-\frac{\sqrt{a \cos \left (f x + e\right )^{2}} \log \left (-\frac{\cos \left (f x + e\right ) + 1}{\cos \left (f x + e\right ) - 1}\right )}{2 \, a f \cos \left (f x + e\right )}, \frac{\sqrt{-a} \arctan \left (\frac{\sqrt{a \cos \left (f x + e\right )^{2}} \sqrt{-a}}{a}\right )}{a f}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cot{\left (e + f x \right )}}{\sqrt{- a \left (\sin{\left (e + f x \right )} - 1\right ) \left (\sin{\left (e + f x \right )} + 1\right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.13288, size = 43, normalized size = 1.39 \begin{align*} \frac{\arctan \left (\frac{\sqrt{-a \sin \left (f x + e\right )^{2} + a}}{\sqrt{-a}}\right )}{\sqrt{-a} f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]